package com.huadao.cart_ccs.common.dialog;

import android.content.Context;
import android.view.View;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.common.dialog.effects.RockButtonAttr;

import java.util.ArrayList;
import java.util.List;

public class RockAttribute {
    private int devideColor;
    private CharSequence title;
    private int titleColor;
    private CharSequence message;
    private int messageColor;
    private int dialogColor;
    private int iconResId;
//    private int button1BgResid;
//    private int button2BgResid;
//    private CharSequence button1Text;
//    private CharSequence button2Text;
//    private RockCallBack rockCallBack1;
//    private RockCallBack rockCallBack2;
    private View customView;
    private int mDuration = -1;
    private boolean isCancelable = true;
    private Effectstype type = null;
    private boolean buttonList;
    private List<RockButtonAttr> buttons=new ArrayList<>();

    public void toDefault(Context mContext) {
        devideColor = mContext.getResources().getColor(R.color.splitter_dark);
        titleColor = mContext.getResources().getColor(R.color.text_black);
        messageColor = mContext.getResources().getColor(R.color.text_lightBlack);
        dialogColor = mContext.getResources().getColor(R.color.dialog_bg);
//        button1BgResid = R.drawable.btn_negative_bg;
//        button2BgResid = R.drawable.btn_positive_bg;
    }

    public int getDevideColor() {
        return devideColor;
    }

    public void setDevideColor(int devideColor) {
        this.devideColor = devideColor;
    }

    public CharSequence getTitle() {
        return title;
    }

    public void setTitle(CharSequence title) {
        this.title = title;
    }

    public int getTitleColor() {
        return titleColor;
    }

    public void setTitleColor(int titleColor) {
        this.titleColor = titleColor;
    }

    public CharSequence getMessage() {
        return message;
    }

    public void setMessage(CharSequence message) {
        this.message = message;
    }

    public int getMessageColor() {
        return messageColor;
    }

    public void setMessageColor(int messageColor) {
        this.messageColor = messageColor;
    }

    public int getDialogColor() {
        return dialogColor;
    }

    public void setDialogColor(int dialogColor) {
        this.dialogColor = dialogColor;
    }

    public int getIconResId() {
        return iconResId;
    }

    public void setIconResId(int iconResId) {
        this.iconResId = iconResId;
    }

//    public int getButton1BgResid() {
//        return button1BgResid;
//    }
//
//    public void setButton1BgResid(int button1BgResid) {
//        this.button1BgResid = button1BgResid;
//    }
//
//    public int getButton2BgResid() {
//        return button2BgResid;
//    }
//
//    public void setButton2BgResid(int button2BgResid) {
//        this.button2BgResid = button2BgResid;
//    }
//
//    public CharSequence getButton1Text() {
//        return button1Text;
//    }
//
//    public void setButton1Text(CharSequence button1Text) {
//        this.button1Text = button1Text;
//    }
//
//    public CharSequence getButton2Text() {
//        return button2Text;
//    }
//
//    public void setButton2Text(CharSequence button2Text) {
//        this.button2Text = button2Text;
//    }
//
//    public RockCallBack getRockCallBack1() {
//        return rockCallBack1;
//    }
//
//    public void setRockCallBack1(RockCallBack rockCallBack1) {
//        this.rockCallBack1 = rockCallBack1;
//    }
//
//    public RockCallBack getRockCallBack2() {
//        return rockCallBack2;
//    }
//
//    public void setRockCallBack2(RockCallBack rockCallBack2) {
//        this.rockCallBack2 = rockCallBack2;
//    }

    public View getCustomView() {
        return customView;
    }

    public void setCustomView(View customView) {
        this.customView = customView;
    }

    public int getmDuration() {
        return mDuration;
    }

    public void setmDuration(int mDuration) {
        this.mDuration = mDuration;
    }

    public boolean isCancelable() {
        return isCancelable;
    }

    public void setCancelable(boolean cancelable) {
        isCancelable = cancelable;
    }

    public Effectstype getType() {
        return type;
    }

    public void setType(Effectstype type) {
        this.type = type;
    }

    public boolean isButtonList() {
        return buttonList;
    }

    public void setButtonList(boolean buttonList) {
        this.buttonList = buttonList;
    }

    public List<RockButtonAttr> getButtons() {
        return buttons;
    }

    public void addButton(RockButtonAttr rockButtonAttr) {
        buttons.add(rockButtonAttr);
    }

//    public void addButton(String button,RockCallBack rockCallBack) {
//        buttons.add(new RockButtonAttr(button,rockCallBack));
//    }
//    public void addButton(String button,int nature,RockCallBack rockCallBack) {
//        buttons.add(new RockButtonAttr(button,nature,rockCallBack));
//    }
}
